//
//  HRCategoryCell.m
//  haierapp
//
//  Created by zhang on 14-8-8.
//  Copyright (c) 2014年 haier. All rights reserved.
//

#import "HRCategoryCell.h"

#import "HRProCategory.h"

@implementation HRCategoryCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

#pragma mark - Methods

-(void)configWithData:(id)data{
    HRProCategory *proCategory=(HRProCategory *)data;
    
    //NSString *titleImage=proCategory.classificationPhoto;
    NSString *title=proCategory.classification1Text;
    NSString *desc=proCategory.classification2Text;
    
//    NSURL *imageURL=[NSURL URLWithString:titleImage];
//    
//    UIImage *placeImage=[UIImage imageNamed:IMAGENAME_PLACE_HODLE];
//    
//    [self.categoryImageView setImageWithURL:imageURL placeholderImage:placeImage];
    self.titleLabel.text=title;
    self.descLabel.text=desc;
    
}

@end
